//
//  SEGDocument.m
//  Commom
//
//  Created by 揭婧雯 on 2019/5/9.
//

#import "SEGDocument.h"

@implementation SEGDocument
-(BOOL)loadFromContents:(id)contents ofType:(NSString *)typeName error:(NSError * _Nullable __autoreleasing *)outError
{
    self.myData = [contents copy];
    return true;
}

-(id)contentsForType:(NSString *)typeName error:(NSError * _Nullable __autoreleasing *)outError
{
    if (!self.myData) {
        self.myData = [[NSData alloc] init];
    }
    return self.myData;
}
@end
